package com.example.demo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户基本信息表(User)实体类
 *
 * @author makejava
 * @since 2021-02-26 15:05:10
 */
@ApiModel("用户基本信息表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {
    private static final long serialVersionUID = -95008898400253977L;
        /**
    *主键
    * 用户id
    * isnull 1
    */
    @ApiModelProperty(value="用户id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String userId;

    /**
    * 用户昵称
    * isnull 0
    */        @ApiModelProperty(value="用户昵称",position=2)
    private String userNickname;
    /**
    * 用户头像
    * isnull 0
    */        @ApiModelProperty(value="用户头像",position=3)
    private String userImg;
    /**
    * 用户绑定手机
    * isnull 0
    */        @ApiModelProperty(value="用户绑定手机",position=4)
    private String userPhone;
    /**
    * 用户绑定邮箱
    * isnull 0
    */        @ApiModelProperty(value="用户绑定邮箱",position=5)
    private String userEmail;
    /**
    * 用户简介
    * isnull 0
    */        @ApiModelProperty(value="用户简介",position=6)
    private String userInfo;
    /**
    * 用户是否可以登录（0：可以；1：不可以）
    * isnull 0
    */        @ApiModelProperty(value="用户是否可以登录（0：可以；1：不可以）",position=7)
    private Integer uloginStatus;
    /**
    * 用户是否可以发言（0：可以；1：不可以）
    * isnull 0
    */        @ApiModelProperty(value="用户是否可以发言（0：可以；1：不可以）",position=8)
    private Integer ucommentStatus;
    /**
    * 等级
    * isnull 0
    */        @ApiModelProperty(value="等级",position=9)
    private Integer grade;
    /**
    * 注册时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="注册时间",position=10)
    private LocalDateTime uregistTime;
    /**
    * 用户性别（0：男；1：女）
    * isnull 0
    */        @ApiModelProperty(value="用户性别（0：男；1：女）",position=11)
    private Integer userSex;
        
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
        
    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }
        
    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
        
    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
        
    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }
        
    public String getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(String userInfo) {
        this.userInfo = userInfo;
    }
        
    public Integer getUloginStatus() {
        return uloginStatus;
    }

    public void setUloginStatus(Integer uloginStatus) {
        this.uloginStatus = uloginStatus;
    }
        
    public Integer getUcommentStatus() {
        return ucommentStatus;
    }

    public void setUcommentStatus(Integer ucommentStatus) {
        this.ucommentStatus = ucommentStatus;
    }
        
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
        
    public LocalDateTime getUregistTime() {
        return uregistTime;
    }

    public void setUregistTime(LocalDateTime uregistTime) {
        this.uregistTime = uregistTime;
    }
        
    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"userId\":" + userId +
                                  " ,\"userNickname\":" + userNickname +
                            " ,\"userImg\":" + userImg +
                            " ,\"userPhone\":" + userPhone +
                            " ,\"userEmail\":" + userEmail +
                            " ,\"userInfo\":" + userInfo +
                            " ,\"uloginStatus\":" + uloginStatus +
                            " ,\"ucommentStatus\":" + ucommentStatus +
                            " ,\"grade\":" + grade +
                            " ,\"uregistTime\":" + uregistTime +
                            " ,\"userSex\":" + userSex +
                  '}';
    }


}
